using System.Collections.Generic;

namespace LoungeRepo.Contracts.EntityCache
{
    public interface IEntityCache
    {
        void Register(object entity, string id, string partition);
        void Evict(string id, string partition);
        IEnumerable<T> GetByType<T>();
        bool TryGetByKey(string id, string partition, out object entity);
    }
}